using System.Data;
using System.Web.UI.WebControls;

namespace TimeSheet.Protected.View
{
    /// <summary>
    /// A nice description of GridControl goes here.
    /// 
    /// Version: $Id: GridControl.cs,v 1.1 2004/03/08 23:56:37 jperrin Exp $
    /// 
    /// Date: 
    /// Copyright: 2004, Kanga Communications, Calgary, Alberta, Canada. 
    /// </summary>
    public class GridControl : BaseControl
    {
        private DataView table;
        private DataGrid grid;

        public DataView TableView
        {
            get { return table; }
            set { table = value; }
        }

        public DataGrid Grid
        {
            get { return grid; }
            set { grid = value; }
        }

        public void BindTable()
        {
            grid.DataSource = table;
            grid.DataBind();
        }
    }
}